package com.example.javaproject.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.javaproject.dto.TeacherStatsDTO;
import com.example.javaproject.entity.Position;
import java.util.List;
import java.util.Map;

public interface PositionService extends IService<Position> {
    boolean add(Position position);
    boolean deleteById(Integer id);
    boolean updatePosition(Position position);
    List<Map<String, Object>> getPositionStats();
    List<Map<String, Object>> getApplicationStats();
    Map<String, Object> getPositionWithTeacher(Integer id);
    List<Map<String, Object>> getAllPositionsWithTeacher();
    TeacherStatsDTO getTeacherStats(Integer teacherId);
    /**
     * 只查未被删除的岗位
     */
    Position getActiveById(Integer id);
    Map<String, Object> getTeacherPositions(Map<String, Object> params);
}